package com.cc.openeye.dynamic.recommend.items

object RecommendDynamicItemHelper {

    const val ITEM_TYPE_SQUARE = "square"
    const val ITEM_TYPE_BANNER = "banner"
    const val ITEM_TYPE_DYNAMIC = "dynamic"
    const val ITEM_TYPE_PRE_LOAD_MORE = "preLoadMore"
    const val ITEM_TYPE_LOAD_MORE = "loadMore"
    const val ITEM_TYPE_UN_KNOW = "unKnow"

    fun getItemType(type: String, dataType: String) =
        if (type == "horizontalScrollCard" && dataType == "ItemCollection") {
            ITEM_TYPE_SQUARE
        } else if (type == "horizontalScrollCard" && dataType == "HorizontalScrollCard") {
            ITEM_TYPE_BANNER
        } else if (type == "communityColumnsCard" && dataType == "FollowCard") {
            ITEM_TYPE_DYNAMIC
        } else {
            ITEM_TYPE_UN_KNOW
        }

    //StaggeredGridItemSpan

    fun getStaggeredGridItemSpan() {

    }
}